<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>问吧妙答后台管理系统 </title>
    <link rel="shortcut icon" href="__STATIC__/admin/images/favicon.ico">
    <link href="__STATIC__/admin/assets/css/bootstrap.min.css" rel="stylesheet" />
    <link rel="stylesheet" href="__STATIC__/admin/assets/css/font-awesome.min.css" />
    <!--[if IE 7]>
		  <link rel="stylesheet" href="__STATIC__/admin/assets/css/font-awesome-ie7.min.css" />
		<![endif]-->
    <link rel="stylesheet" href="__STATIC__/admin/assets/css/ace.min.css" />
    <link rel="stylesheet" href="__STATIC__/admin/assets/css/ace-rtl.min.css" />
    <link rel="stylesheet" href="__STATIC__/admin/assets/css/ace-skins.min.css" />
    <link rel="stylesheet" href="__STATIC__/admin/css/style.css" />
    <!--[if lte IE 8]>
		  <link rel="stylesheet" href="__STATIC__/admin/assets/css/ace-ie.min.css" />
		<![endif]-->
    <script src="__STATIC__/admin/assets/js/ace-extra.min.js"></script>
    <!--[if lt IE 9]>
		<script src="__STATIC__/admin/assets/js/html5shiv.js"></script>
		<script src="__STATIC__/admin/assets/js/respond.min.js"></script>
		<![endif]-->
    <!--[if !IE]> -->
    <script src="__STATIC__/admin/js/jquery-1.9.1.min.js"></script>
    <!-- <![endif]-->
    <!--[if IE]>
         <script type="text/javascript">window.jQuery || document.write("<script src='__STATIC__/admin/assets/js/jquery-1.10.2.min.js'>"+"<"+"script>");</script>
        <![endif]-->
    <script type="text/javascript">
        if ("ontouchend" in document) document.write("<script src='__STATIC__/admin/assets/js/jquery.mobile.custom.min.js'>" + "<" + "script>");
    </script>
    <script src="__STATIC__/admin/assets/js/bootstrap.min.js"></script>
    <script src="__STATIC__/admin/assets/js/typeahead-bs2.min.js"></script>
    <!--[if lte IE 8]>
		  <script src="__STATIC__/admin/assets/js/excanvas.min.js"></script>
		<![endif]-->
    <script src="__STATIC__/admin/assets/js/ace-elements.min.js"></script>
    <script src="__STATIC__/admin/assets/js/ace.min.js"></script>
    <script src="__STATIC__/admin/assets/layer/layer.js" type="text/javascript"></script>
    <script src="__STATIC__/admin/assets/laydate/laydate.js" type="text/javascript"></script>
    <script src="__STATIC__/admin/js/jquery.nicescroll.js" type="text/javascript"></script>

    <script type="text/javascript">
        $(function() {
            var cid = $('#nav_list> li>.submenu');
            cid.each(function(i) {
                $(this).attr('id', "Sort_link_" + i);

            })
        })
        jQuery(document).ready(function() {
            $.each($(".submenu"), function() {
                var $aobjs = $(this).children("li");
                var rowCount = $aobjs.size();
                var divHeigth = $(this).height();
                $aobjs.height(divHeigth / rowCount);
            });
            //初始化宽度、高度

            $("#main-container").height($(window).height() - 132);
            $("#iframe").height($(window).height() - 196);

            $(".sidebar").height($(window).height() - 155);
            var thisHeight = $("#nav_list").height($(window).outerHeight() - 229);
            $(".submenu").height();
            $("#nav_list").children(".submenu").css("height", thisHeight);

            //当文档窗口发生改变时 触发
            $(window).resize(function() {
                $("#main-container").height($(window).height() - 132);
                $("#iframe").height($(window).height() - 196);
                $(".sidebar").height($(window).height() - 155);

                var thisHeight = $("#nav_list").height($(window).outerHeight() - 229);
                $(".submenu").height();
                $("#nav_list").children(".submenu").css("height", thisHeight);
            });
            $(document).on('click', '.iframeurl', function() {
                var cid = $(this).attr("name");
                var cname = $(this).attr("title");
                $("#iframe").attr("src", cid).ready();
                $("#Bcrumbs").attr("href", cid).ready();
                $(".Current_page a").attr('href', cid).ready();
                $(".Current_page").attr('name', cid);
                $(".Current_page").html(cname).css({
                    "color": "#333333",
                    "cursor": "default"
                }).ready();
                $("#parentIframe").html('<span class="parentIframe iframeurl"> </span>').css("display", "none").ready();
                $("#parentIfour").html('').css("display", "none").ready();
            });
            $(".menu .menu-nav li").click(function() {
                $(this).addClass('active').siblings().removeClass('active');
            });


        });
        /******/
        $(document).on('click', '.link_cz > li', function() {
            $('.link_cz > li').removeClass('active');
            $(this).addClass('active');
        });


        /*********************点击事件*********************/
        $(document).ready(function() {
            $('#nav_list,.link_cz').find('li.home').on('click', function() {
                $('#nav_list,.link_cz').find('li.home').removeClass('active');
                $(this).addClass('active');
            });
            //时间设置
            function currentTime() {
                var d = new Date(),
                    str = '';
                str += d.getFullYear() + '年';
                str += d.getMonth() + 1 + '月';
                str += d.getDate() + '日';
                str += d.getHours() + '时';
                str += d.getMinutes() + '分';
                str += d.getSeconds() + '秒';
                return str;
            }

            setInterval(function() {
                $('#time').html(currentTime)
            }, 1000);
            /*$('#Exit_system').on('click', function() {
                layer.confirm('是否确定退出系统？', {
                        btn: ['是', '否'], //按钮
                        icon: 2,
                    },
                    function() {
                        location.href = "login.html";

                    });
            });*/
        });
        function link_operating(name, title) {
            var cid = $(this).name;
            var cname = $(this).title;
            $("#iframe").attr("src", cid).ready();
            $("#Bcrumbs").attr("href", cid).ready();
            $(".Current_page a").attr('href', cid).ready();
            $(".Current_page").attr('name', cid);
            $(".Current_page").html(cname).css({
                "color": "#333333",
                "cursor": "default"
            }).ready();
            $("#parentIframe").html('<span class="parentIframe iframeurl"> </span>').css("display", "none").ready();
            $("#parentIfour").html('').css("display", "none").ready();
        }
    </script>
</head>

<body>
    <div class="navbar navbar-default" id="navbar">
        <div class="navbar-container" id="navbar-container">
            <div class="navbar-header pull-left">
                <span class="version">V <i>1.0.01</i></span>
                <a href="#" class="navbar-brand">
                    <small>
						<img src="__STATIC__/admin/images/logo.png" width="300px">
						</small>
                </a>
            </div>
            <div class="navbar-header pull-right" role="navigation">
                <ul class="nav ace-nav">
                    <li class="light-blue">
                        <a data-toggle="dropdown" href="#" class="dropdown-toggle">
                            <span class="time"><em id="time"></em></span><span class="user-info"><small>欢迎光临,</small>超级管理员</span>
                            <i class="icon-caret-down"></i>
                        </a>
                        <ul class="user-menu pull-right dropdown-menu dropdown-yellow dropdown-caret dropdown-close">
                            <li><a href="javascript:void(0);" name="Systems.html" title="系统设置" class="iframeurl"><i class="icon-cog"></i>网站设置</a></li>
                            <li><a href="javascript:void(0)" name="admin_info.html" title="个人信息" class="iframeurl"><i class="icon-user"></i>个人资料</a></li>
                            <li class="divider"></li>
                            <li><a href="{:url('login/index')}" id="Exit_system"><i class="icon-off"></i>退出</a></li>
                        </ul>
                    </li>
                </ul>
            </div>
        </div>
    </div>
    <div class="main-container" id="main-container">
        <!--菜单开始-->
        <div class="menu">
            <div class="sidebar-shortcuts-large menu-icon" id="sidebar-shortcuts-large">
                <a class="btn btn-success">
                    <i class="icon-signal"></i>
                </a>

                <a class="btn btn-info">
                    <i class="icon-pencil"></i>
                </a>

                <a class="btn btn-warning">
                    <i class="icon-group"></i>
                </a>

                <a class="btn btn-danger">
                    <i class="icon-cogs"></i>
                </a>
            </div>

        </div>
    <!--菜单结束-->
        <div class="main-container-inner">
            <a class="menu-toggler" id="menu-toggler" href="#">
                <span class="menu-text"></span>
            </a>
            <div class="sidebar" id="sidebar">
                <div class="sidebar-shortcuts" id="sidebar-shortcuts">
                    <div class="sidebar-shortcuts-mini" id="sidebar-shortcuts-mini">
                        <span class="btn btn-success"></span>

                        <span class="btn btn-info"></span>

                        <span class="btn btn-warning"></span>

                        <span class="btn btn-danger"></span>
                    </div>
                </div>
                <!-- #sidebar-shortcuts -->
                <div id="menu_style" class="menu_style">
                    <ul class="nav nav-list" id="nav_list">
                        <li class="home"><a href="javascript:void(0)" name="home.html" class="iframeurl" title=""><i class="icon"></i><span class="menu-text"> 系统首页 </span></a></li>

                        {foreach $rules as $rule}
                        <li><a href="#" class="dropdown-toggle"><i class="icon"></i><span class="menu-text"> {$rule.title}</span><b class="arrow icon-angle-down"></b></a>
                            <ul class="submenu">
                                {foreach $rule.child as $item}
                                <li class="home"><a href="javascript:void(0)" name="{:url($item.name)}" title="{$item.title}"
                                                    class="iframeurl"><i class="icon-double-angle-right"></i>{$item.title}</a></li>
                                {/foreach}
                            </ul>
                        </li>
                        {/foreach}
                    </ul>
                </div>
                <div class="sidebar-collapse" id="sidebar-collapse">
                    <i class="icon-double-angle-left" data-icon1="icon-double-angle-left" data-icon2="icon-double-angle-right"></i>
                </div>
            </div>

            <div class="main-content">
                <div class="breadcrumbs" id="breadcrumbs">
                    <ul class="breadcrumb">
                        <li>
                            <i class="icon-home home-icon"></i>
                            <a href="index.html">首页</a>
                        </li>
                        <li class="active"><span class="Current_page iframeurl"></span></li>
                        <li class="active" id="parentIframe"><span class="parentIframe iframeurl"></span></li>
                        <li class="active" id="parentIfour"><span class="parentIfour iframeurl"></span></li>
                    </ul>
                </div>
                <iframe id="iframe" style="border:0; width:100%; background-color:#FFF;" name="iframe" frameborder="0"
                        src="{:url('index/welcome')}"> </iframe>
                <!-- /.page-content -->
            </div>
            <!-- /.main-content -->

            <div class="ace-settings-container" id="ace-settings-container">
                <div class="btn btn-app btn-xs btn-warning ace-settings-btn" id="ace-settings-btn">
                    <i class="icon-cog bigger-150"></i>
                </div>

                <div class="ace-settings-box" id="ace-settings-box">
                    <div>
                        <div class="pull-left">
                            <select id="skin-colorpicker" class="hide">
                                <option data-skin="default" value="#438EB9">#438EB9</option>
                                <option data-skin="skin-1" value="#222A2D">#222A2D</option>
                                <option data-skin="skin-2" value="#C6487E">#C6487E</option>
                                <option data-skin="skin-3" value="#D0D0D0">#D0D0D0</option>
                            </select>
                        </div>
                        <span>&nbsp; 选择皮肤</span>
                    </div>

                    <div>
                        <input type="checkbox" class="ace ace-checkbox-2" id="ace-settings-sidebar" />
                        <label class="lbl" for="ace-settings-sidebar"> 固定滑动条</label>
                    </div>

                    <div>
                        <input type="checkbox" class="ace ace-checkbox-2" id="ace-settings-rtl" />
                        <label class="lbl" for="ace-settings-rtl">切换到左边</label>
                    </div>

                    <div>
                        <input type="checkbox" class="ace ace-checkbox-2" id="ace-settings-add-container" />
                        <label class="lbl" for="ace-settings-add-container">
                            切换窄屏
                            <b></b>
                        </label>
                    </div>
                </div>
            </div>
            <!-- /#ace-settings-container -->
        </div>
        <!-- /.main-container-inner -->

    </div>
    <!--底部样式-->

    <div class="footer_style" id="footerstyle">
        <p class="r_f">阿西里西 &copy;版权所有 Axlix.com 2018</p>
    </div>
</body>

</html>
